# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022 Xilinx, Inc. All rights reserved.
#

CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
PROJECT(perf_IOPS)
set(TESTNAME "perf_IOPS")

include(../../CMake/utils.cmake)

add_executable(xrt_api_iops xrt_api_iops.cpp)
target_link_libraries(xrt_api_iops PRIVATE ${xrt_coreutil_LIBRARY})
install(TARGETS xrt_api_iops RUNTIME DESTINATION ${INSTALL_DIR}/${TESTNAME})

if (NOT WIN32)
  add_executable(xcl_api_iops xcl_api_iops.cpp)
  target_link_libraries(xcl_api_iops  PRIVATE ${xrt_coreutil_LIBRARY})
  target_link_libraries(xcl_api_iops  PRIVATE ${xrt_core_LIBRARY})

  target_link_libraries(xrt_api_iops PRIVATE ${uuid_LIBRARY} pthread)
  target_link_libraries(xcl_api_iops PRIVATE ${uuid_LIBRARY} pthread)
  install(TARGETS xcl_api_iops RUNTIME DESTINATION ${INSTALL_DIR}/${TESTNAME})
endif(NOT WIN32)


install(FILES xrt.ini DESTINATION ${INSTALL_DIR}/${TESTNAME})
